package com.exercises;


import javax.jws.soap.SOAPBinding;
import java.util.HashMap;
import java.util.Map;

public class Exercise163 {
    public static void main(String[] args) {
        int a = Integer.MAX_VALUE + 25;
        System.out.println(a);
    }

    public static String convertToTitle(int columnNumber) {
        StringBuilder stringBuilder = new StringBuilder();
        while (columnNumber > 0) {
            int b = (columnNumber - 1) % 26 + 1;
            stringBuilder.insert(0, (char) (b - 1 + 'A'));
            columnNumber = (columnNumber - b) / 26;
        }
        return stringBuilder.toString();
    }
}